#ifndef IPSTACKEDWIDGET_H
#define IPSTACKEDWIDGET_H

#include <QMap>
#include <QStackedWidget>
#include "qiptablesexception.h"

/**
 \file ipstackedwidget.h

 \class IpStackedWidget

 \brief Class to contain application forms


*/
class IpStackedWidget : public QStackedWidget
{
    Q_OBJECT
public:

    explicit IpStackedWidget(QWidget *parent = 0);

    /**
    \brief Adds a widget to IpStackedWidget

    \param widgetName - name to identify widget
    \param widget - pointer to widget to add

    \return index of newly added widget
      **************************/
    virtual int	addWidget(QString widgetName, QWidget *widget);

    /**
    \brief get index number of widget using widget name

    \param widgetName - name of widget as used when calling addWidget method

    \return index number of widget
      **********************/
    virtual int getPageIndex(QString widgetName);


signals:

public slots:

protected:

     QMap<QString, int> *widgetMap;

};

#endif // IPSTACKEDWIDGET_H
